export interface RoleQueryParams {
	roleName: string
	roleKey: string
	status: string
	'params[beginTime]'?: string
	'params[endTime]'?: string
}

export interface Role {
	createBy: string
	createTime: string
	updateBy: string
	updateTime: string
	remark: string
	id: number
	roleName: string
	roleKey: string
	roleSort: number
	dataScope: number
	menuCheckStrictly: boolean
	deptCheckStrictly: boolean
	status: number
	delFlag: string
	flag: boolean
	menuIds: number[]
	deptIds: number[]
	permissions: string[]
	admin: boolean
}

export interface RoleParams {
	roleName: string
	roleKey: string
	roleSort: number
	dataScope: number
	menuCheckStrictly: boolean
	deptCheckStrictly: boolean
	status: number
	remark: string
	menuIds: number[]
	deptIds: number[]
	roleId?: number
}

export interface DeptTree {
	checkedKeys?: number[]
	depts: Dept[]
}

export interface Dept {
	id: number
	label: string
	disabled: boolean
	children?: Dept[]
}

export interface DataSopeParams {
	roleName: string
	roleKey: string
	dataScope: number
	id: number
	menuCheckStrictly?: boolean
	deptCheckStrictly?: boolean
	deptIds?: number[]
}

export interface AllowQueryParams {
	userName: string
	phoneNumber: string
	roleId: string
}
